package com.yh.dao;

import com.yh.pojo.User;

import java.util.List;

public interface IUserDao {

    //查询所有用户
    public List<User> findAll() throws Exception;
    //条件查询
    public User findByCondition(User user) throws Exception;
    //新增用户
    int addUser(User user);

    int update(User user);

    int delete(User user);
}
